<?php

namespace App\Task\Stat;

use App\Model\HostInfo;
use Hyperf\Crontab\Annotation\Crontab;

/**
 * 更新主播信息
 * @Crontab(name="StatHostInfoTask", rule="*\/60 * * * *", callback="execute", memo="更新主播信息", singleton=false)
 */
class StatHostInfoTask
{
    public function execute()
    {
        log_info(__CLASS__ . "==Start==" . date('Y-m-d H:i:s'));
        HostInfo::initHostInfo();
    }
}
